<?php
 $session_data = $this->session->userdata('disproju');
?>
<!DOCTYPE html>
<html lang="pt-br">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>FREQUÊNCIA PMA</title>
		<link rel="icon" href="<?php echo base_url('includes/images/clock.png'); ?>" type="image/png">
		<!-- Bootstrap core CSS -->
		
		<script src="<?php echo base_url('includes/js/jquery-1.11.1.min.js')?>"></script>
		
		<script src="<?php echo base_url('includes/bootstrap/js/bootstrap.min.js') ?>"></script>
		<script src="<?php echo base_url('includes/js/jquery.mask.min.js')?>"></script>
		<script src="<?php echo base_url('includes/js/jquery.validate.min.js')?>"></script>
		
		<!-- PLUGIN DATATABLE -->
		<script src="<?php echo base_url('includes/js/jquery.dataTables.min.js')?>"></script>
		<script src="<?php echo base_url('includes/js/dataTables.responsive.min.js')?>"></script>
		<script src="<?php echo base_url('includes/js/dataTables.bootstrap.js')?>"></script>
		
		
		<script src="<?php echo base_url('includes/js/alertify.min.js')?>"></script>
		<script src="<?php echo base_url('includes/js/jquery.mask.min.js')?>"></script>
		
		
		<link href="<?php echo base_url('includes/bootstrap/css/bootstrap.min.css') ?>" rel="stylesheet">
		

		<link href="<?php echo base_url('includes/css/jquery.dataTables.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/dataTables.bootstrap.css') ?>" rel="stylesheet"> 
		<link href="<?php echo base_url('includes/css/dataTables.responsive.css') ?>" rel="stylesheet">
		
		<script src="<?php echo base_url('includes/js/jquery-ui.js') ?>"></script>
		<script src="<?php echo base_url('includes/js/jquery-ui-timepicker-addon.js') ?>"></script>
		<link href="<?php echo base_url('includes/css/jquery-ui.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/custom.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/alertify.core.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/alertify.bootstrap.css') ?>" rel="stylesheet">
		<style>
		.ui-widget { font-size: .8em;}
		input, textarea{text-transform:uppercase;}
		.error{color:red;}
		body { font-size: 120% }
		 
		table.dataTable th, table.dataTable td {
				white-space: nowrap;
			}
		fieldset legend {
			border-width: 0;
			padding-bottom: 25px;
			margin-bottom: 0px; 
		}
		fieldset {
			background-color: #f5f5f5;
			border: 1px solid #e3e3e3;
			border-radius: 4px;
			box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
			margin-bottom: 20px;
			min-height: 20px;
		}
		.breadcrumb {
			margin-bottom: 5px;
		}
		.navbar {
			margin-bottom: 5px;
		}
		</style>
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
		<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->
	</head>
	<body>
	<nav class="navbar navbar-inverse" role="navigation">
		<div class="container-fluid">
			<!-- Brand and toggle get grouped for better mobile display -->
			<div class="navbar-header">
				
				 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				</button>
				<img style=" float: left;    height: 45px;    margin: 2px 15px 5px;" src="<?php echo base_url('includes/images/logo.png'); ?>" >
				<a class="navbar-brand" href="<?php echo base_url('/index.php/inicio');?>">Frequência On-line</a>
				
			</div>

		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		  <ul class="nav navbar-nav">
			<li class="dropdown">
			  <a href="#" class="dropdown-toggle  glyphicon glyphicon-list-alt" data-toggle="dropdown"> FREQUÊNCIA <span class="caret"></span></a>
			  <ul class="dropdown-menu" role="menu">
				<li><a href="<?php echo base_url('/index.php/processos/novo');?>">Adicionar Frequência</a></li>
				<li><a href="<?php echo base_url('/index.php/processos/novo');?>">Validar Frequência</a></li>
				<li><a href="<?php echo base_url('/index.php/processos/novo');?>">Autorizar Frequência</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo base_url('/index.php/processos/meusprocessos');?>">Consultar Frequência</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo base_url('/index.php/processos/relatoriosaida');?>">Relatório Frequência</a></li>
				<li><a href="<?php echo base_url('/index.php/processos/relatorioredistribuicao');?>">Relatorio por Funcionário</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo base_url('/index.php/processos/relatorioredistribuicao');?>">Estatística</a></li>
				<li><a href="<?php echo base_url('/index.php/processos/relatorioredistribuicao');?>">Avisos</a></li>

			  </ul>
			</li>
			<?php
			//PERMISSAO 
			if(viewPermissao(array('1','2','3','4'),$session_data)){
			?>
			<li class="dropdown">
			  <a href="#" class="dropdown-toggle glyphicon glyphicon-th" data-toggle="dropdown"> ADMINISTRAÇÃO
			  <span class="caret"></span></a>
			  <ul class="dropdown-menu" role="menu">
				<li><a href="<?php echo base_url('/index.php/processos/novo');?>">Consultar Verbas</a></li>
				<li><a href="<?php echo base_url('/index.php/processos/novo');?>">Relatório Verbas</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo base_url('/index.php/processos/meusprocessos');?>">Prazo lançamento</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo base_url('/index.php/processos/relatoriosaida');?>">Relatório Assentamentos</a></li>
				<li><a href="<?php echo base_url('/index.php/processos/relatorioredistribuicao');?>">Relatorio Observações</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo base_url('/index.php/processos/relatorioredistribuicao');?>">Lançar em Folha de Pagamento</a></li>

			  </ul>
			</li>
			<?php
			}
			
			//PERMISSAO 
			if(viewPermissao(array('1','2'),$session_data)){
			?>
			<li class="dropdown">
			  <a href="#" class="dropdown-toggle  glyphicon glyphicon-user" data-toggle="dropdown"> USUÁRIO <span class="caret"></span></a>
			  <ul class="dropdown-menu" role="menu">
				<li><a href="<?php echo base_url('/index.php/usuarios/novo');?>">Adicionar Usuário</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo base_url('/index.php/usuarios/consulta');?>">Consultar Usuário</a></li>
			  </ul>
			</li>
			<?php
			}
			?>
		  </ul>
		  <form class="navbar-form navbar-left" role="search" method="POST" action="<?php echo base_url('/index.php/processos/consulta');?>">
			<div class="form-group">
				<input type="text" class="form-control input-sm" placeholder="Buscar..." name="search">
			</div>
			<div class="form-group">
				<select class="form-control input-sm" name="status">
					<option value="1">ATIVO</option>
					<option value="2">ARQUIVADO</option>
				</select>
			</div>
			<button type="submit" class="btn btn-info">Buscar</button>
		  </form>
		  <ul class="nav navbar-nav navbar-right">
			<li><a href="<?php echo base_url('/index.php/login/sair');?>"><?php echo $session_data['nome'];?> | SAIR</a></li>
		  </ul>
		</div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</nav>
